package com.chenjinyan.back.service;

import com.chenjinyan.back.entity.ConnectionEntity;
import com.chenjinyan.back.vo.ConnectionVo;
import com.chenjinyan.back.vo.Result;

import java.text.ParseException;
import java.util.List;

public interface ConnectionService {


    /**
     * @Description: 新增连接
     */
    Result insertConnection(ConnectionVo connectionVo) throws ParseException;


    /**
     * @Description: 查找链接
     */
    Result getConnection(ConnectionVo connectionVo) throws ParseException;


    /**
     * @Description: 查找链接
     */
    List<ConnectionEntity> getConnectionById(ConnectionVo connectionVo) throws ParseException;


    /**
     * @Description: 删除链接
     */
    Result delConnection(List<String> ids) throws ParseException;

    /**
     * @Description: 删除链接
     */
    Long updateConnection(ConnectionVo connectionVo) throws ParseException;

}
